package com.dirtylily.myblog.service;


import com.dirtylily.myblog.dao.UserDao;
import com.dirtylily.myblog.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpSession;

@Service
@Transactional
public class UserService {

    @Autowired
    public UserDao userDao;
    public User checkUser(String username, String password){
        User user = userDao.UserFindByUsernameAndPassword(username, password);

        return user;

    }
}
